#f21010631 徐唯嘉
import cv2
import numpy as np

img = cv2.imread('fire.jpeg')

#先膨胀再腐蚀
kernel = np.ones((50,50),np.uint8)
closing = cv2.morphologyEx(img, cv2.MORPH_CLOSE, kernel)
cv2.imshow('closing', closing)
cv2.waitKey(0)
cv2.destroyAllWindows()